package com.css.zfzx.fxpg.modules.casulaty.probability.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author leon
 * @date 2020-12-03
 */
@Data
public class FxCasulatyProbabilityVO implements Serializable, IExcelDataModel, IExcelModel {
    /**
     * 行数和错误信息
     */
    private Integer rowNum;
    private String errorMsg;


    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;

    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;

    @NotNull(message = "缺失")
    @Excel(name = "区", width = 15)
    private String area;

    @NotNull(message = "缺失")
    @Excel(name = "人员伤亡（重伤/死亡）", width = 22)
    private String casulaty;

    @NotNull(message = "缺失")
    @Excel(name = "时间段（白天/黑夜）", width = 22)
    private String period;

    @NotNull(message = "缺失")
    @Excel(name = "破坏程度", replace = {"基本完好_0", "轻微破坏_1", "中等破坏_2", "严重破坏_3", "完全破坏_4"}, width = 15)
    private String damageDegree;

    @Excel(name = "概率值-线上计算", width = 25)
    private Float probabilityOne;

    @NotNull(message = "缺失")
    @Excel(name = "概率值-修改值", width = 20)
    private Float probabilityTwo;

    @NotNull(message = "缺失")
    @Excel(name = "伤亡数（人）", width = 15)
    private Float casualties;

    @Excel(name = "期望值（人）", width = 15)
    private Float expect;

    @NotNull(message = "缺失")
    @Excel(name = "期望值（人）-修改值", width = 20)
    private Float changedExpect;

}